<?xml version="1.0" encoding="UTF-8" ?>
<!--
    Document   : cadastrarProduto
    Created on : 01 nov 2011, 11:17:59
    Author     : vinicius
-->
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions"
      >

    <ui:composition template="template.xhtml">
        <ui:define name="title">
            <h:outputText value="Cadastro de Voos" />
        </ui:define>
        <ui:define name="body">
            
            
            <br></br><br></br><br></br><br></br><br></br>
            <h:panelGrid columns="2"  styleClass="tabelaRich500"
                         columnClasses="col30Right, alignCenter">
                <h:form>
                    
                    <h:panelGrid columns="2" styleClass="tabelaRich500" columnClasses="col166Right, col250Left">
                        <h:outputText value="#{msgs['num.voo']}: "  />
                        <h:inputText id="numvoo" value="#{vooBusiness.voo.numVoo}"/>
                    </h:panelGrid>

                    <h:panelGrid columns="2" styleClass="tabelaRich500" columnClasses="col166Right, col250Left">
                        <h:outputText value="#{msgs['localOrigem.voo']}: "  />
                        <h:inputText id="localorigem" value="#{vooBusiness.voo.localOrigem}" />
                    </h:panelGrid>
                    
                    <h:panelGrid columns="2" styleClass="tabelaRich500" columnClasses="col166Right, col250Left">
                        <h:outputText value="#{msgs['localDestino.voo']}: "  />
                        <h:inputText id="localdestino" value="#{vooBusiness.voo.localDestino}" />
                    </h:panelGrid>

                    <h:panelGrid columns="2" styleClass="tabelaRich500" columnClasses="col166Right, col250Left">
                        <h:outputText value="#{msgs['dataVoo.voo']}: "  />
                        <rich:calendar></rich:calendar>
                    </h:panelGrid>

                    <h:panelGrid columns="2" styleClass="tabelaRich500" columnClasses="col166Right, col250Left">
                        <h:outputText value="#{msgs['horaVoo.voo']}: " />
                        <h:inputText id="hora" value="#{vooBusiness.voo.hora}" />
                    </h:panelGrid>
                    
                    <h:panelGrid columns="2" styleClass="tabelaRich500" columnClasses="col166Right, col250Left">
                        <h:outputText value="#{msgs['capacidade.voo']}: " />
                        <h:inputText id="capacidade" value="#{vooBusiness.voo.capacidade}" />
                    </h:panelGrid>
                    
                    <h:panelGrid columns="2" styleClass="tabelaRich500" columnClasses="col166Right, col250Left" >
                        <h:commandButton value="#{msgs['system.salvar']}" action="#{vooBusiness.salvarVoo()}"/>
                        <h:commandButton value="#{msgs['system.cancelar']}"  />
                    </h:panelGrid>
                    
                </h:form>
            </h:panelGrid>
            
            <div id="logoadd">
            <h:graphicImage value="../imagens/add.png"/>
            </div>


        </ui:define>
    </ui:composition>
</html>
